/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.donggoi.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import com.portlet.donggoi.model.chiTietQTDongGoi;

import java.io.Serializable;

/**
 * The cache model class for representing chiTietQTDongGoi in entity cache.
 *
 * @author Thi
 * @see chiTietQTDongGoi
 * @generated
 */
public class chiTietQTDongGoiCacheModel implements CacheModel<chiTietQTDongGoi>,
	Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(13);

		sb.append("{maChiTietQT=");
		sb.append(maChiTietQT);
		sb.append(", tenCongDoan=");
		sb.append(tenCongDoan);
		sb.append(", cachThucHien=");
		sb.append(cachThucHien);
		sb.append(", kiemTraThucHien=");
		sb.append(kiemTraThucHien);
		sb.append(", tanSuat=");
		sb.append(tanSuat);
		sb.append(", maQuyTrinh=");
		sb.append(maQuyTrinh);
		sb.append("}");

		return sb.toString();
	}

	public chiTietQTDongGoi toEntityModel() {
		chiTietQTDongGoiImpl chiTietQTDongGoiImpl = new chiTietQTDongGoiImpl();

		if (maChiTietQT == null) {
			chiTietQTDongGoiImpl.setMaChiTietQT(StringPool.BLANK);
		}
		else {
			chiTietQTDongGoiImpl.setMaChiTietQT(maChiTietQT);
		}

		if (tenCongDoan == null) {
			chiTietQTDongGoiImpl.setTenCongDoan(StringPool.BLANK);
		}
		else {
			chiTietQTDongGoiImpl.setTenCongDoan(tenCongDoan);
		}

		if (cachThucHien == null) {
			chiTietQTDongGoiImpl.setCachThucHien(StringPool.BLANK);
		}
		else {
			chiTietQTDongGoiImpl.setCachThucHien(cachThucHien);
		}

		if (kiemTraThucHien == null) {
			chiTietQTDongGoiImpl.setKiemTraThucHien(StringPool.BLANK);
		}
		else {
			chiTietQTDongGoiImpl.setKiemTraThucHien(kiemTraThucHien);
		}

		if (tanSuat == null) {
			chiTietQTDongGoiImpl.setTanSuat(StringPool.BLANK);
		}
		else {
			chiTietQTDongGoiImpl.setTanSuat(tanSuat);
		}

		if (maQuyTrinh == null) {
			chiTietQTDongGoiImpl.setMaQuyTrinh(StringPool.BLANK);
		}
		else {
			chiTietQTDongGoiImpl.setMaQuyTrinh(maQuyTrinh);
		}

		chiTietQTDongGoiImpl.resetOriginalValues();

		return chiTietQTDongGoiImpl;
	}

	public String maChiTietQT;
	public String tenCongDoan;
	public String cachThucHien;
	public String kiemTraThucHien;
	public String tanSuat;
	public String maQuyTrinh;
}